package com.dfrz.ch10.Animal;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/20 11:39
 * 描述:
 */
public class Animal  {
    private String name;


    public Animal(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void cry(){
        System.out.println("我是动物我不知道怎么叫");
    }

//    protected Animal getAnimal(){
////        Animal animal=new Animal();
////        return animal;
//    }
}
